<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改三才配置')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-sancaianalysis-edit" th:object="${sancaiAnalysis}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">三才：</label>
                <div class="col-sm-8">
                    <input name="sancai" th:field="*{sancai}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">吉凶：</label>
                <div class="col-sm-8">
                    <input name="jixiong" th:field="*{jixiong}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">分析：</label>
                <div class="col-sm-8">
                    <textarea name="analysis" class="form-control">[[*{analysis}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">总论：</label>
                <div class="col-sm-8">
                    <textarea name="zonglun" class="form-control">[[*{zonglun}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">性格：</label>
                <div class="col-sm-8">
                    <textarea name="xingge" class="form-control">[[*{xingge}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">意志：</label>
                <div class="col-sm-8">
                    <textarea name="yizhi" class="form-control">[[*{yizhi}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">事业：</label>
                <div class="col-sm-8">
                    <textarea name="shiye" class="form-control">[[*{shiye}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">家庭：</label>
                <div class="col-sm-8">
                    <textarea name="jiating" class="form-control">[[*{jiating}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">婚姻：</label>
                <div class="col-sm-8">
                    <textarea name="hunyin" class="form-control">[[*{hunyin}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">子女：</label>
                <div class="col-sm-8">
                    <textarea name="zinv" class="form-control">[[*{zinv}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">社交：</label>
                <div class="col-sm-8">
                    <textarea name="shejiao" class="form-control">[[*{shejiao}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">精神：</label>
                <div class="col-sm-8">
                    <textarea name="jingshen" class="form-control">[[*{jingshen}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">财运：</label>
                <div class="col-sm-8">
                    <textarea name="caiyun" class="form-control">[[*{caiyun}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">健康：</label>
                <div class="col-sm-8">
                    <textarea name="jiankang" class="form-control">[[*{jiankang}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">老运：</label>
                <div class="col-sm-8">
                    <textarea name="laoyun" class="form-control">[[*{laoyun}]]</textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "naming/sancaianalysis";
        $("#form-sancaianalysis-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-sancaianalysis-edit').serialize());
            }
        }
    </script>
</body>
</html>